| Total Complexity | 55 |
| Dependencies | 8 |
| Dependents | 4 |
| Total lines | 521 |
| Lines of code | 303 |
| Logical lines of code | 156 |
| Comment lines | 82 |
| Methods | 12 |
| Properties | 5 |
| Method | Rating | Maintainability | Complexity | Lines of code |
|---|---|---|---|---|
| upsert_coupon_for_promotion_rule() | 34 | 19 | 89 | |
| queue_vouchers_for_promotion() | 44 | 4 | 50 | |
| handle_voucher_created_webhook() | 52 | 5 | 26 | |
| handle_voucher_redeemed_webhook() | 51 | 5 | 26 | |
| format_voucher_webhook() | 58 | 5 | 15 | |
| start_sync() | 55 | 4 | 19 | |
| handle_voucher_updated_webhook() | 55 | 4 | 19 | |
| task() | 51 | 3 | 28 | |
| handle_voucher_deleted_webhook() | 61 | 2 | 12 | |
| sync_vouchers_to_woocommerce() | 70 | 2 | 6 | |
| __construct() | 71 | 1 | 6 | |
| init() | 67 | 1 | 7 |